-- GENERATED SPELL FOR [Nesingwary Game Warden] --


function spell0_30737(pUnit, Event) --@Multi-Shot,n/a--
pUnit:FullCastSpellOnTarget(31942,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30737', 651, 1)
end

function spell1_30737(pUnit, Event) --@Net,n/a--
pUnit:FullCastSpellOnTarget(6533,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30737', 2318, 1)
end

function spell2_30737(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(16100,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30737', 570, 1)
end

function spell3_30737(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(23337,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30737', 522, 1)
end

function Sorts_30737(pUnit, Event)
local choix_sorts_30737 = math.random(0, 3)
if choix_sorts_30737 == 0 then
pUnit:RegisterEvent('spell0_30737', 1, 1)
end
if choix_sorts_30737 == 1 then
pUnit:RegisterEvent('spell1_30737', 1, 1)
end
if choix_sorts_30737 == 2 then
pUnit:RegisterEvent('spell2_30737', 1, 1)
end
if choix_sorts_30737 == 3 then
pUnit:RegisterEvent('spell3_30737', 1, 1)
end
end

function mob30737_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_30737', math.random(1500, 3000), 1)
end

function mob30737_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30737_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30737_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(30737, 1, 'mob30737_Action')
RegisterUnitEvent(30737, 2, 'mob30737_Leave')
RegisterUnitEvent(30737, 3, 'mob30737_Kill')
RegisterUnitEvent(30737, 4, 'mob30737_Die')
